package com.xbongbong.pro.statistic.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 公共查询条件保存入参
 * @author zhouwq
 * @date 2020/8/24 9:59
 */

@Getter
@Setter
@ToString
public class CategoryPermissionSaveDTO extends BaseDTO {

    private static final long serialVersionUID = -2883039305162248651L;

    /**
     * 分类ID
     */
    @NotNull(message = "图表分类/仪表盘ID不可为空！")
    private Long categoryId;

    /**
     * 权限信息
     * @see com.xbongbong.pro.statistic.pojo.ChartPermissionsPojo
     */
    private JSONObject permissions;
}
